//! Coupled-lattice map solver for the complex Ginzburg-Laundau equation.
//!
//! We want to solve the time-dependent Ginzburg-Landau equation
//! with complex coefficients.
//!
//! $\partial_t A = \mu A - (1 + i \alpha) |A|^2 A + (1 + i \beta) \nabla^2 A$
//!
//! We split this into a local map, which independently evolves
//! $\partial_t A = \mu A - (1 + i \alpha) |A|^2 A$ at each point,
//! and a non-local point which evolves the diffusive coupling
//! $\partial_t A = (1 + i \beta) \nabla^2 A$ between nearby points.
//! We then apply each piece alternately at least timestep to evolve
//! the overall system forward in time.

extern crate num_complex;
use num_complex::Complex64;

/// Local map applied at each point.
pub fn map(z: Complex64) -> Complex64 {
  z*z
}
